package abstract_;

/**
 * @author wly
 * @create 2022-12-04 22:20
 */
public class Abstract01 {
    public static void main(String[] args) {
        System.out.println(DD.n1);
        DD.f1();
        new EE().f2();
        EE.f1();
    }
}

abstract class DD{
    public static int n1 = 345;
    public static void f1(){
        System.out.println("静态方法");
    }
    public abstract void f2();
}

class EE extends DD{

    public static void f1(){
        System.out.println("重写静态方法");
    }

    @Override
    public void f2() {
        System.out.println("抽象方法实现");
    }
}